package cn.hpu.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import cn.hpu.util.ImageFactory;

import com.opensymphony.xwork2.ActionSupport;

public class ImageAction extends ActionSupport {

	public void image() throws Exception {
		ImageFactory ifc = new ImageFactory();
		HttpServletRequest request = ServletActionContext.getRequest();
		HttpServletResponse response = ServletActionContext.getResponse();
		ifc.service(request, response);
	}

}
